package gr.atc.epart;

import com.google.android.maps.GeoPoint;

public class GeoCodeSuggestion
{
	 private String _address;
	 private GeoPoint _location;
	 private double _latitude;
	 private double _longitude;
	 
	 public GeoCodeSuggestion(String address,GeoPoint location)
	 {
		 _address = address;
		 _location = location;
		 
		 _latitude  = _location.getLatitudeE6()/1E6;
		 _longitude = _location.getLongitudeE6()/1E6;
	 }

	 public GeoCodeSuggestion(String address,double latitude, double longitude)
	 {
		 _address = address;
		 _latitude  = latitude; 
		 _longitude = longitude;
	
		 _location = new GeoPoint((int)(latitude * 1E6),(int)(longitude * 1E6));
	 }

	 public String getAddress()
	 {
		 return _address;
	 }
	 
	 public GeoPoint getLocation()
	 {
		 return _location; 
	 }
	 
	 public double getLatitude()
	 {
		 return _latitude;
	 }
	 
	 public double getLongitude()
	 {
		 return _longitude;
	 }
}
